how to compare variable in different columns pandas